package com.china08.yxyapi.schedule.mistakes;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.china08.yxyapi.service.mg.impl.StuMistakesQuesServiceImpl;

/**
 * 学生错题定时统计
 * 
 * @author LiuWeidong
 *
 */
@Component
public class StuMistakesQuesStatisticsTask {
    @Autowired
    private StuMistakesQuesServiceImpl stuMistakesQuesServiceImpl;

    private static final Logger log = LoggerFactory.getLogger(StuMistakesQuesServiceImpl.class);

    /* 同步学生的错题信息 */
    // @Scheduled(cron = "0 0 0/4 * * ?")
    // public void resResourceForYearTask() {
    // stuMistakesQuesServiceImpl.stuMistakesQuesStatistics();
    // }

    @Scheduled(cron = "0 0/4 * * * ?")
    public void resResourceForYearTask() {
        stuMistakesQuesServiceImpl.stuMistakesQuesStatistics();
    }

}
